home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Dialectic 1.2 / source / Dialectic ƒ / Dialectic code / program globals.h < prev   
Encoding:
Text File  |  1994-10-30  |  2.3 KB  |  80 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        program globals.h
  4.  
  5. Purpose:    This is the header file containing all Dialectic-specific
  6.             globals, enums, #defines, and structs.
  7.  
  8.  
  9. Dialectic -=- dialect text conversion extraordinare
  10. Copyright ©1994, Mark Pilgrim
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. enum
  30. {
  31.     allsWell=0,
  32.     kNoMemory,
  33.     kNoMemoryAndQuitting,
  34.     kProgramIntegrityNotVerified,
  35.     kProgramIntegritySet,
  36.     kSystemTooOld,
  37.     kCantOpenInputFile,
  38.     kCantCreateTempFile,
  39.     kCantOpenTempFile,
  40.     kCantReadInputFile,
  41.     kCantWriteTempFile,
  42.     kScrapTooLarge,
  43.     kNoTextInScrap,
  44.     userCancelErr
  45. };
  46.  
  47. #define CREATOR            'DiAl'
  48. #define APPLICATION_NAME "\pDialectic"
  49. #define    SAVE_TYPE        'TEXT'
  50.  
  51. #define INPUT_BUFFER_MAX 10240
  52. #define OUTPUT_BUFFER_MAX 10240
  53.  
  54. extern    FSSpec            inputFS;
  55. extern    FSSpec            outputFS;
  56. extern    FSSpec            tempFS;
  57. extern    Boolean            deleteTheThing;
  58. extern    int                inputRefNum;
  59. extern    int                outputRefNum;
  60. extern    unsigned long    gInputOffset;
  61. extern    unsigned long    gOutputOffset;
  62. extern    Ptr                gInputBuffer;
  63. extern    Ptr                gOutputBuffer;
  64. extern    Boolean            gInputNeedsUpdate;
  65. extern    Boolean            gOutputNeedsUpdate;
  66. extern    unsigned long    gAbsoluteOffset;
  67. extern    unsigned long    gInputLength;
  68. extern    unsigned long    gWhatsReallyInInputBuffer;
  69. extern    unsigned char    gWhichDialect;
  70. extern    Boolean            gInWord;
  71. extern    Boolean            gSeenI;
  72. extern    Boolean            gSeenBackslash;
  73. extern    int                gCurlyLevel;
  74. extern    Boolean            gDoingRTF;
  75.  
  76. extern    unsigned char    gUseRTF;
  77. extern    unsigned char    gShowSaveDialog;
  78. extern    unsigned char    gAddSuffix;
  79. extern    unsigned char    gShowProgress;
  80.